package com.example.team.service.Imp;

import com.example.team.dao.IOffdutyDao;
import com.example.team.entity.Offduty;
import com.example.team.service.IOffdutyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者:王轩
 * date: 2023/10/31
 **/
@Service
public class IOffdutyServiceImol implements IOffdutyService {
    @Autowired
    private IOffdutyDao offdutyDao;
    @Override
    public int insertOffduty(Offduty offduty) {
        return offdutyDao.insertOffduty(offduty);
    }

    @Override
    public int deleteOffduty(Offduty offduty) {
        return offdutyDao.deleteOffduty(offduty);
    }

    @Override
    public int updateOffduty(Offduty offduty) {
        return offdutyDao.updateOffduty(offduty);
    }

    @Override
    public List<Offduty> getAllOffduty(Offduty offduty) {
        return offdutyDao.getAllOffduty(offduty);
    }

    @Override
    public Offduty getOffduty(Offduty offduty) {
        return offdutyDao.getOffduty(offduty);
    }
}
